export function transformRoutesByMenus(sourceAry,distAry){
    sourceAry.forEach(element=>{
      if(element.children&&element.children.length>0){
        transformRoutesByMenus(element.children,distAry)
      }else{
        distAry.push(element)
      }
    })
}